<div class="farm-overhaul-container">
  <aside class="farm-overhaul-aside">

    <!-- <app-turbine-tag-selector 
      [hasTag]="true" 
      [setTag]="'05'"
      [codeTags]="codeTags"
      [farmLimiteCount]="1"
      [LimitedChoice]="LimitedChoice" 
      (limitedTags)="onLimitedTags($event)"
      (limitedTurbines)="onLimitedTurbines($event)">
    </app-turbine-tag-selector> -->
    <app-device-tag-selector fxFlexFill  
        [deviceCategories]="deviceCategory"     
        [multipleFarm]="false"
        [choiceDeviceCount]="deviceCountLimit"
        [defaultChooseDeviceCount]="defaultChooseDeviceCount"
        [choiceTagCount]="LimitedChoice"     
        [includeTagSelector]="true" 
        [selectedTagAll]='true'
        [tagSet]="'05'"
        
        (selectedTagsChange)="selectedTagsChange($event)"       
        (selectedDevicesChange)="onSelectedDevicesChange($event)">       
        </app-device-tag-selector>
  </aside>
  <section class="farm-overhaul-main flex flex-column flex-full">
    <header class="overhaul-main-header flex">

      <div class="farms flex-full operation-header">
        风机运行温度测点

      </div>
      <div class="time-choose">
        查询时间：
        <p-calendar [locale]="en" [(ngModel)]="startDate" showTime="true" hourFormat="24"></p-calendar>
        <button class="button" (click)="onSearch()">查询</button>
        
        <!--<button class="button exp" (click)="exportData()" id="ex">导出</button> -->
        <i class="exp"><a (click)="exportData()" id="ex">导出</a></i> 
      </div>
    </header>
    <section class="main" #main id="ex-tab">
      <div class="main-part" *ngFor="let items of turbTable;let i=index" #mainPart>
        <table cellspacing="0" cellpadding=0  border="1">
          <caption border="1" style="font-size:22px" hidden>{{startDate | date:'yyyy-MM-dd'}}风机运行温度</caption>
          <thead>
            <tr>
              <th *ngFor="let item of items?.th;let n=index" [title]="item" #th>
                {{item}} <br>{{items.unit[n]}}
              </th>
            </tr>
          </thead>
          <tbody>
            <tr *ngFor="let item of items?.rows;let n=index">
              <td *ngFor="let o of item?.colomns;let m=index"  #td>
               <!-- {{o.cell.data.value===undefined?o.cell.data:o.cell.data.value | number: '1.0-2'}}   -->
                  {{o.cell.data.valueDesc || (o.cell.data.value===undefined?o.cell.data:o.cell.data.value  | number: '1.0-2')}}   
              </td>
            </tr>
          </tbody>
        </table>
      </div>


    </section>
  </section>
</div>
<p-dialog header="提示信息" [(visible)]="display" modal="modal" width="250" [responsive]="true">
  <p>{{mes}}!</p>
  <p-footer>
    <button type="button" pButton icon="fa-check" (click)="display=false" label="确定"></button>
  </p-footer>
</p-dialog>